import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取表格数据
export const getChangeCustomerGrade = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/changeCustomerGrade/changeCustomerGrade/getChangeCustomerGrade`, { params });
// 获取新客户级别
export const getNewCustomerGrade = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/changeCustomerGrade/changeCustomerGrade/getNewCustomerGrade`, { params });

// 修改
export const updateCustomerGrade = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/customerGrade/customerGrade/updateCustomerGrade`, params);
// 新增
export const addCustomeRgradeUpdatet = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/changeCustomerGrade/changeCustomerGrade/addCustomeRgradeUpdatet`, params);

// 获取表格数据
export const getChangeCustomerGradeUpdate = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/changeCustomerGrade/changeCustomerGrade/getChangeCustomerGradeUpdate`, { params });

// 获取客户级别
export const selectCustomerLevel= params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/changeCustomerGrade/changeCustomerGrade/selectCustomerLevel`, { params });
